<?php

namespace app\api\controller;
use  app\common\controller\DBase;
use  app\api\logic\TestTikTokLogic;
use  app\customer\logic\TikMessageLogic;
/**
 * @desc  测试类用于tik接口测试
 */
class TestTikTok extends DBase
{

    /**
     * @desc   获取订单给详情测试
     * @date   2024-03-16
     * @author xx
     */
    public function getOrders($orderId = null,$shopId = null,$type = 0)
    {
        $data    = $this->request->post();
        return   (new TestTikTokLogic())->getOrders($data);
    }


    /**
     * @desc   创建会话消息测试
     * @date   2024-03-16
     * @author luckyXiong
     */
    public function createConversations($orderId = null,$shopId = null,$type = 0)
    {
        $data    = $this->request->post();
        return  $this->jsonMessage(200,'true','操作成功',null);
      //  return   (new TestTikTokLogic())->create_conversations($data);
    }



    /**
     * @desc   创建会话并发送消息 type:1
     * @date   2024-05-24
     * @author luckyXiong
     */
     public function createMessages(){
         $data    = $this->request->post();
         (new TikMessageLogic())->create_conversations($data);
         return  $this->jsonMessage(200,'true','操作成功',null);
     }
















}